package com.ekuaitu.kuaitustaff.bean;

import java.util.List;

/**
 * Created by micha on 2017/2/10.
 */

public class InitAppBean {

    /**
     * errCode : 0
     * message : 成功
     * attachment : {"imgUrl":"https://img.ekuaitu.cn/kuaitudongli/picture/","enclosure":{"id":1,"areaCode":"010","isOnline":1,"cityName":"大北京","isBike":1,"isCar":1,"bikeRangeList":[{"bikeRange":[{"lat":39.459791,"lng":116.206538},{"lat":39.906138,"lng":115.586879},{"lat":40.230177,"lng":116.0892},{"lat":40.171949,"lng":116.118273},{"lat":40.11632,"lng":116.147609},{"lat":40.116452,"lng":116.147622},{"lat":40.116519,"lng":116.147629},{"lat":40.116552,"lng":116.147632},{"lat":40.116568,"lng":116.147634},{"lat":40.116577,"lng":116.147635},{"lat":40.116581,"lng":116.147635},{"lat":40.116583,"lng":116.147635},{"lat":40.116585,"lng":116.147635},{"lat":40.11685,"lng":116.147662},{"lat":40.11738,"lng":116.147714},{"lat":40.117645,"lng":116.147741},{"lat":40.117678,"lng":116.147744},{"lat":40.117694,"lng":116.147746},{"lat":40.117711,"lng":116.147747},{"lat":40.117777,"lng":116.147754},{"lat":40.117843,"lng":116.14776},{"lat":40.11791,"lng":116.147767},{"lat":40.122149,"lng":116.148188},{"lat":40.124269,"lng":116.148399},{"lat":40.125328,"lng":116.148504},{"lat":40.126388,"lng":116.14861},{"lat":40.128508,"lng":116.14882},{"lat":40.129567,"lng":116.148926},{"lat":40.130097,"lng":116.148978},{"lat":40.130362,"lng":116.149005},{"lat":40.130495,"lng":116.149018},{"lat":40.130627,"lng":116.149031},{"lat":40.292988,"lng":116.181917},{"lat":40.229412,"lng":116.299828},{"lat":40.197252,"lng":116.420486},{"lat":40.177525,"lng":116.52574},{"lat":40.157952,"lng":116.591413},{"lat":40.146771,"lng":116.65022},{"lat":40.111802,"lng":116.994771},{"lat":39.851569,"lng":116.923214},{"lat":39.63699,"lng":116.766076}]}]},"areaCode":"010","businessType":2,"appleUrl":"itunes.apple.com/cn/app/kuai-tu-chu-xing/id1166954547?l=zh&ls=1&mt=8","isAuditing":null,"service_call":"147852","versionControl":{"id":28,"platform":1,"type":2,"versionNum":"2.0.0beta","style":2,"modifyTime":1487129686000,"createTime":1487129686000,"version":0},"userType":1}
     */

    private int errCode;
    private String message;
    private AttachmentBean attachment;

    public int getErrCode() {
        return errCode;
    }

    public void setErrCode(int errCode) {
        this.errCode = errCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public AttachmentBean getAttachment() {
        return attachment;
    }

    public void setAttachment(AttachmentBean attachment) {
        this.attachment = attachment;
    }

    public static class AttachmentBean {
        /**
         * imgUrl : https://img.ekuaitu.cn/kuaitudongli/picture/
         * enclosure : {"id":1,"areaCode":"010","isOnline":1,"cityName":"大北京","isBike":1,"isCar":1,"bikeRangeList":[{"bikeRange":[{"lat":39.459791,"lng":116.206538},{"lat":39.906138,"lng":115.586879},{"lat":40.230177,"lng":116.0892},{"lat":40.171949,"lng":116.118273},{"lat":40.11632,"lng":116.147609},{"lat":40.116452,"lng":116.147622},{"lat":40.116519,"lng":116.147629},{"lat":40.116552,"lng":116.147632},{"lat":40.116568,"lng":116.147634},{"lat":40.116577,"lng":116.147635},{"lat":40.116581,"lng":116.147635},{"lat":40.116583,"lng":116.147635},{"lat":40.116585,"lng":116.147635},{"lat":40.11685,"lng":116.147662},{"lat":40.11738,"lng":116.147714},{"lat":40.117645,"lng":116.147741},{"lat":40.117678,"lng":116.147744},{"lat":40.117694,"lng":116.147746},{"lat":40.117711,"lng":116.147747},{"lat":40.117777,"lng":116.147754},{"lat":40.117843,"lng":116.14776},{"lat":40.11791,"lng":116.147767},{"lat":40.122149,"lng":116.148188},{"lat":40.124269,"lng":116.148399},{"lat":40.125328,"lng":116.148504},{"lat":40.126388,"lng":116.14861},{"lat":40.128508,"lng":116.14882},{"lat":40.129567,"lng":116.148926},{"lat":40.130097,"lng":116.148978},{"lat":40.130362,"lng":116.149005},{"lat":40.130495,"lng":116.149018},{"lat":40.130627,"lng":116.149031},{"lat":40.292988,"lng":116.181917},{"lat":40.229412,"lng":116.299828},{"lat":40.197252,"lng":116.420486},{"lat":40.177525,"lng":116.52574},{"lat":40.157952,"lng":116.591413},{"lat":40.146771,"lng":116.65022},{"lat":40.111802,"lng":116.994771},{"lat":39.851569,"lng":116.923214},{"lat":39.63699,"lng":116.766076}]}]}
         * areaCode : 010
         * businessType : 2
         * appleUrl : itunes.apple.com/cn/app/kuai-tu-chu-xing/id1166954547?l=zh&ls=1&mt=8
         * isAuditing : null
         * service_call : 147852
         * versionControl : {"id":28,"platform":1,"type":2,"versionNum":"2.0.0beta","style":2,"modifyTime":1487129686000,"createTime":1487129686000,"version":0}
         * userType : 1
         */

        private String imgUrl;
        private EnclosureBean enclosure;
        private String areaCode;
        private int businessType;
        private String appleUrl;
        private String isAuditing;
        private String service_call;
        private VersionControlBean versionControl;
        private int userType;
        private int distanceJudgment;//判断寻车距离

        public int getDistanceJudgment() {
            return distanceJudgment;
        }

        public void setDistanceJudgment(int distanceJudgment) {
            this.distanceJudgment = distanceJudgment;
        }

        public String getImgUrl() {
            return imgUrl;
        }

        public void setImgUrl(String imgUrl) {
            this.imgUrl = imgUrl;
        }

        public EnclosureBean getEnclosure() {
            return enclosure;
        }

        public void setEnclosure(EnclosureBean enclosure) {
            this.enclosure = enclosure;
        }

        public String getAreaCode() {
            return areaCode;
        }

        public void setAreaCode(String areaCode) {
            this.areaCode = areaCode;
        }

        public int getBusinessType() {
            return businessType;
        }

        public void setBusinessType(int businessType) {
            this.businessType = businessType;
        }

        public String getAppleUrl() {
            return appleUrl;
        }

        public void setAppleUrl(String appleUrl) {
            this.appleUrl = appleUrl;
        }

        public String getIsAuditing() {
            return isAuditing;
        }

        public void setIsAuditing(String isAuditing) {
            this.isAuditing = isAuditing;
        }

        public String getService_call() {
            return service_call;
        }

        public void setService_call(String service_call) {
            this.service_call = service_call;
        }

        public VersionControlBean getVersionControl() {
            return versionControl;
        }

        public void setVersionControl(VersionControlBean versionControl) {
            this.versionControl = versionControl;
        }

        public int getUserType() {
            return userType;
        }

        public void setUserType(int userType) {
            this.userType = userType;
        }

        public static class EnclosureBean {
            /**
             * id : 1
             * areaCode : 010
             * isOnline : 1
             * cityName : 大北京
             * isBike : 1
             * isCar : 1
             * bikeRangeList : [{"bikeRange":[{"lat":39.459791,"lng":116.206538},{"lat":39.906138,"lng":115.586879},{"lat":40.230177,"lng":116.0892},{"lat":40.171949,"lng":116.118273},{"lat":40.11632,"lng":116.147609},{"lat":40.116452,"lng":116.147622},{"lat":40.116519,"lng":116.147629},{"lat":40.116552,"lng":116.147632},{"lat":40.116568,"lng":116.147634},{"lat":40.116577,"lng":116.147635},{"lat":40.116581,"lng":116.147635},{"lat":40.116583,"lng":116.147635},{"lat":40.116585,"lng":116.147635},{"lat":40.11685,"lng":116.147662},{"lat":40.11738,"lng":116.147714},{"lat":40.117645,"lng":116.147741},{"lat":40.117678,"lng":116.147744},{"lat":40.117694,"lng":116.147746},{"lat":40.117711,"lng":116.147747},{"lat":40.117777,"lng":116.147754},{"lat":40.117843,"lng":116.14776},{"lat":40.11791,"lng":116.147767},{"lat":40.122149,"lng":116.148188},{"lat":40.124269,"lng":116.148399},{"lat":40.125328,"lng":116.148504},{"lat":40.126388,"lng":116.14861},{"lat":40.128508,"lng":116.14882},{"lat":40.129567,"lng":116.148926},{"lat":40.130097,"lng":116.148978},{"lat":40.130362,"lng":116.149005},{"lat":40.130495,"lng":116.149018},{"lat":40.130627,"lng":116.149031},{"lat":40.292988,"lng":116.181917},{"lat":40.229412,"lng":116.299828},{"lat":40.197252,"lng":116.420486},{"lat":40.177525,"lng":116.52574},{"lat":40.157952,"lng":116.591413},{"lat":40.146771,"lng":116.65022},{"lat":40.111802,"lng":116.994771},{"lat":39.851569,"lng":116.923214},{"lat":39.63699,"lng":116.766076}]}]
             */

            private String id;
            private String areaCode;
            private int isOnline;
            private String cityName;
            private int isBike;
            private int isCar;
            private List<BikeRangeListBean> bikeRangeList;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getAreaCode() {
                return areaCode;
            }

            public void setAreaCode(String areaCode) {
                this.areaCode = areaCode;
            }

            public int getIsOnline() {
                return isOnline;
            }

            public void setIsOnline(int isOnline) {
                this.isOnline = isOnline;
            }

            public String getCityName() {
                return cityName;
            }

            public void setCityName(String cityName) {
                this.cityName = cityName;
            }

            public int getIsBike() {
                return isBike;
            }

            public void setIsBike(int isBike) {
                this.isBike = isBike;
            }

            public int getIsCar() {
                return isCar;
            }

            public void setIsCar(int isCar) {
                this.isCar = isCar;
            }

            public List<BikeRangeListBean> getBikeRangeList() {
                return bikeRangeList;
            }

            public void setBikeRangeList(List<BikeRangeListBean> bikeRangeList) {
                this.bikeRangeList = bikeRangeList;
            }

            public static class BikeRangeListBean {
                private List<BikeRangeBean> bikeRange;

                public List<BikeRangeBean> getBikeRange() {
                    return bikeRange;
                }

                public void setBikeRange(List<BikeRangeBean> bikeRange) {
                    this.bikeRange = bikeRange;
                }

                public static class BikeRangeBean {
                    /**
                     * lat : 39.459791
                     * lng : 116.206538
                     */

                    private double lat;
                    private double lng;

                    public double getLat() {
                        return lat;
                    }

                    public void setLat(double lat) {
                        this.lat = lat;
                    }

                    public double getLng() {
                        return lng;
                    }

                    public void setLng(double lng) {
                        this.lng = lng;
                    }
                }
            }
        }

        public static class VersionControlBean {
            /**
             * id : 28
             * platform : 1
             * type : 2
             * versionNum : 2.0.0beta
             * style : 2
             * modifyTime : 1487129686000
             * createTime : 1487129686000
             * version : 0
             */

            private String id;
            private int platform;
            private int type;
            private String versionNum;
            private int style;
            private long modifyTime;
            private long createTime;
            private int version;
            private String updateTitle;
            private String updateContent;

            public String getUpdateTitle() {
                return updateTitle;
            }

            public void setUpdateTitle(String updateTitle) {
                this.updateTitle = updateTitle;
            }

            public String getUpdateContent() {
                return updateContent;
            }

            public void setUpdateContent(String updateContent) {
                this.updateContent = updateContent;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public int getPlatform() {
                return platform;
            }

            public void setPlatform(int platform) {
                this.platform = platform;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public String getVersionNum() {
                return versionNum;
            }

            public void setVersionNum(String versionNum) {
                this.versionNum = versionNum;
            }

            public int getStyle() {
                return style;
            }

            public void setStyle(int style) {
                this.style = style;
            }

            public long getModifyTime() {
                return modifyTime;
            }

            public void setModifyTime(long modifyTime) {
                this.modifyTime = modifyTime;
            }

            public long getCreateTime() {
                return createTime;
            }

            public void setCreateTime(long createTime) {
                this.createTime = createTime;
            }

            public int getVersion() {
                return version;
            }

            public void setVersion(int version) {
                this.version = version;
            }
        }
    }
}
